<?php

use Welcomescreen\Agavi\View;

class Backend_Visits_AddErrorView extends View\BackendBaseView {
	
	/**
	 * @parameter  AgaviRequestDataHolder $rd
	 * @return     mixed
	 */
	public function executeJson(AgaviRequestDataHolder $rd) {
		return json_encode(array(
			'status' => 'error',
			'errors' => $this->getContainer()->getValidationManager()->getReport()->getErrorMessages(),
		));
	}
}

?>